package com.tronsis.library.http;


import android.content.Context;

import com.tronsis.library.BuildConfig;


public class HttpConfig {
    public static final String SERVER_CERTIFICATE = "";
    public static final int COUNT_PER_PAGE = 15;
    public static final String HTTP_HERDER_NAME_AUTH = "Authorization";
    public static final String HTTP_HERDER_VALUE_AUTH = "$@!m@^l!49k58z10203$@!m@^l!49k58z10203";
    public static final String HTTP_HEADER_NAME_UA = "User-Agent";
    public static final String HTTP_HEADER_VALUE_UA = "Android";
    public static final String HTTP_HEADER_KEY_HOST = "X-Server-Host";

    public static final String HTTP_HEADER_NAME_CONTENT_TYPE = "Content-Type";
    public static final String HTTP_HEADER_VALUE_CONTENT_TYPE = "application/json";

    public static final int MAX_CONNECT_TIMEOUT = 15; // 最大连接超时时间
    public static final int MAX_READ_TIMEOUT = 20; // 最大读数据超时时间
    public static final int MAX_WRITE_TIMEOUT = 20; // 最大写数据超时时间
    public static final int HTTP_STATUS_CODE_SERVER_ERROR = 5000; // 服务器错误
    public static final int HTTP_STATUS_CODE_NET_ERROR = 5001; // 网络错误
    public static final int HTTP_STATUS_CODE_NET_TIME_OUT = 5002; // 连接超时

    public static final String BASE_PUBLIC_CLOUD = "";//公有云

    public static final String USERINFO="/app/userinfo";//用户信息
    //    public static final String AUTHENTICATION=BASE_SERVER_PATH+"/app/authentication";

    //下载文件 BASE_SERVER_PATH + "/files/download/"
    private static final String DOWNLOAD_FILE_PATH = "/files/download/"; // 加载网络图片的链接前缀，图片链接为：DOWNLOAD_FILE_PATH + imageId(图片id)
    public static final String DOWNLOAD_FILE_PATH_PUBLIC = BASE_PUBLIC_CLOUD + "/files/download/";// 公有云加载网络图片的链接前缀

    public static final String USER_LOGIN = "/app/authentication/login/app";//app登录
    public static final String TRENDS="/app/userinfo/trends";//记录一次用户在线(打开应用时调用)



}
